#include "Def.h"


Def::Def(std::string _id, std::string _para, Expr *_expr, vm *_env, int _ln)
    : id(_id), para(_para), bodyExpr(_expr), env(_env), Stmt(_ln)
{
    env->AddFunction(id, para, bodyExpr);
}


Def::~Def(void)
{
    delete bodyExpr;
}

int Def::Eval()
{    
    return -1;
}


